
#ifndef TERRAINPANEL_H
#define TERRAINPANEL_H

#include <BSpinBox>
#include <BGroupBox>
#include <BTerrain>
#include <BGroupBox>
#include <BButton>
#include <BCheckBox>
#include <BComboBox>
#include <BRealSpinBox>

using namespace BWE;

class TerrainPanel : public BGroupBox
{
public:
	TerrainPanel(BWidget* parent = 0);
	~TerrainPanel();

protected:
	void slotAssetChanged(BObject* object, const BValue& value);
	void slotOptimizedToggled(BObject* object, const BValue& value);
	void slotAlignEdited(BObject* object, const BValue& value);
	void slotSizeEdited(BObject* object, const BValue& value);
	void slotSegmentEdited(BObject* object, const BValue& value);

private:
	BCheckBox*				_optimizedCheckBox;
	BComboBox*				_alignComboBox;
	BRealSpinBox*			_widthSpinBox;
	BRealSpinBox*			_heightSpinBox;
	BSpinBox*				_widthSegmentSpinBox;
	BSpinBox*				_heightSegmentSpinBox;
	BHolder<BTerrain>		_terrain;
};

#endif